﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/List.Master" AutoEventWireup="true" CodeBehind="MonthReport.aspx.cs" Inherits="Honestysoft.Financing.WebUI.Module.Reports.MonthReport" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript" type="text/javascript">
        function query() {
            var year = document.getElementById("<%=ddlTheYear.ClientID %>").value;
            var month = document.getElementById("<%=ddlMonth.ClientID %>").value;
            ifrmInfo.location.href = '<%=System.Configuration.ConfigurationManager.AppSettings["ReportServerURL"] %>/R008&year=' + year + '&Month=' + month + '&rc:parameters=false';
        }
        function setCurMonth() {
            var date = new Date();
            document.getElementById("<%=ddlTheYear.ClientID %>").value = date.getYear();
            document.getElementById("<%=ddlMonth.ClientID %>").value = date.getMonth() + 1;
            query();
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tr>
            <td width="270px" style="vertical-align:top">

    <div class="query_area">		
    年度：<asp:DropDownList runat="server" ID="ddlTheYear" 
            CssClass="input2" Width="50px" onchange="query()"
           ></asp:DropDownList>&nbsp;&nbsp;
        月份：<asp:DropDownList runat="server" ID="ddlMonth" CssClass="input2" Width="40px"  onchange="query()"
           ></asp:DropDownList>&nbsp;&nbsp;
            <asp:Button runat="server" ID="btnCurMonth" Text="当前月" OnClientClick="setCurMonth();return false;"  CssClass="btn_normal"  onMouseOver="this.className='btn_active'" 
            onMouseOut="this.className='btn_normal'"/>
    </div> 


            </td>
            <td>

                 <iframe id="ifrmInfo" scrolling="yes" frameborder="0"  src="" style="width:100%;height:480px;"></iframe> 

            </td>
        </tr>
    </table>
    <script language="javascript" type="text/javascript">
        query();
    </script>

</asp:Content>
